home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sources / xbmbrows / xbmbro31.z / xbmbro31 / xbmbrowser3.1 / xbmbrowser.menu < prev   
Text File  |  1993-08-05  |  2KB  |  61 lines

  1. # This is the sample menu setup file for xbmbrowser version 3.1
  2. #
  3. # It cantains the information that the program uses to create the user-defined
  4. # action menu.
  5. #
  6. # Each line is one menu entry. They have the format of:
  7. #
  8. # "Menu Name" "command" "popup query string" 
  9. #
  10. # The line MUST begin in the first character. that is LEFT JUSTIFIED or it
  11. # will be ignored.
  12. #
  13. # - The folowing are allowable macros for use in the "command" string.
  14. #        %b - Current bitmap name (no path)
  15. #        %B - Current bitmap name (with full path)
  16. #        %u - Users input string (default value in text box is %b)
  17. #        %n - Users input string (default value in text box is blank)
  18. #        %d - Current Directory
  19. # - Starting a line with a ! means DO NOT rescan the bitmaps.
  20. #
  21. # - A blank "popup query string" (ie "") means DO NOT use the popup query.
  22. #
  23. # Rename Menu Entry
  24. "Rename" "mv %b %u" "Enter The New Name:"
  25.  
  26. # Copy Menu Entry
  27. "Copy" "cp %b %u" "Copy to:"
  28.  
  29. # Delete Menu Entry
  30. "Delete" "rm %b" "Really delete it?"
  31.  
  32. # Edit Menu Entry
  33. !"Edit" "bitmap %b&" ""
  34.  
  35. # Set the bitmap as the root decoration
  36. !"xsetroot" "xsetroot -bitmap %b" ""
  37.  
  38. # Set the bitmap as the root decoration
  39. !"xsetroot inv" "xsetroot -rv -bitmap %b" ""
  40.  
  41. #########################################
  42. #
  43. # Some other example menu items for personal .xbmbrowserrc files.
  44. #
  45. # Grab it Menu Entry
  46. #!"Grab It" "cp %b ~/X11/icons/%b" ""
  47. #                   ^^^^^^^^^^ Change this it where you keep icons.
  48. #
  49. #!"--PBMPLUS--" "" ""
  50. #!"invert"   "xbmtopbm %b|pnminvert|pbmtoxbm >%b.2 && mv %b.2 %b||rm %b.2" ""
  51. #!"crop"     "xbmtopbm %b|pnmcrop|pbmtoxbm >%b.2 && mv %b.2 %b||rm %b.2" ""
  52. #
  53. #   Other pbmplus uses is to rotate/resize/rescale/center the bitmaps.  The
  54. # best way to use pbm plus is to write shell scripts to do the bitmap
  55. # operations you want and then get xbmbrowser to call your scripts with
  56. # appropiate arguments.
  57. #
  58.